package online.heycm.rbac.domain.basic.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import online.heycm.rbac.domain.basic.repository.entity.BasicRbacResource;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 资源定义（前端） Mapper 接口
 * </p>
 *
 * @author heycm
 * @since 2024-01-11
 */
public interface BasicRbacResourceMapper extends BaseMapper<BasicRbacResource> {

    List<BasicRbacResource> selectRoleResources(@Param("roleIds") Set<Integer> roleIds);
}
